jd_str = 'fetchJSON_comment98({"jwotestProduct":null,"score":0});'

# re是Python中专门用于做正则匹配的库
import re

# Python
match_res = re.match(pattern="(^fetchJSON_comment98\()(.*)(\);)", string=jd_str,flags=0)
# print(match_res)

# print(match_res.groups(1))
# print(match_res.group(2))
# print(match_res.group(3))

import json

jd_json = json.loads(match_res.group(2))
print(jd_json['score'])

